package com.galaxy.device.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.galaxy.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 设备维护对象 device_maintenance
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("device_maintenance")
public class DeviceMaintenance extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 设备ID */
//    @Excel(name = "设备ID")
    private Long deviceId;

    /** 维护人员ID */
//    @Excel(name = "维护人员ID")
    private Long userId;

    /** 维护单号 */
//    @Excel(name = "维护单号")
    private String maintenanceNo;

    /** 维护类型(1:定期维护,2:故障维修,3:紧急维护) */
//    @Excel(name = "维护类型", readConverterExp = "1=定期维护,2=故障维修,3=紧急维护")
    private Integer maintenanceType;

    /** 状态(0:待维护,1:维护中,2:已完成) */
//    @Excel(name = "状态", readConverterExp = "0=待维护,1=维护中,2=已完成")
    private Integer status;

    /** 维护描述 */
//    @Excel(name = "维护描述")
    private String description;

    /** 开始时间 */
//    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
//    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 维护结果 */
//    @Excel(name = "维护结果")
    private String result;

    private String remark;
}
